#ifndef PROXY_NUM
#define PROXY_NUM

#include"NumArray.h"

struct ProxyNum {
    ProxyNum();
    explicit ProxyNum(NumArray * object, size_t index = 0);
    ProxyNum & operator =(unsigned long long const & value);
    ProxyNum & operator +=(ProxyNum const & right);
    ProxyNum & operator -=(ProxyNum const & right);
    ProxyNum & operator *=(ProxyNum const & right);
    operator int() const;
private:
    NumArray * object_;
    size_t index_;
};

#endif
